package com.freedom.admin.infrastructure.persistence.pojo.form;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.util.List;


@ApiModel("菜单资源表单")
@Data
public class RoleResourceForm {

    @NotNull(message = "角色id不能为空")
    private Integer roleId;

    @ApiModelProperty("菜单ID集合")
    @NotEmpty(message = "分配的菜单不能为空")
    private List<Integer> menuIds;

    @ApiModelProperty("权限ID集合")
    @NotEmpty(message = "分配的权限不能为空")
    private List<Integer> permIds;

}
